""" functions_and_blocks Simple program to learn basic function writing and use code blocks uses the random library""" import random # define the function hello_world def hello_world(): print ("Hello world") def random_greeting(): x = random.randint(1,4) #x gets set to a random number between 1 and 4 inclusive if x == 1: print ("================ Bonjour") if x == 2: print ("================ Hallo") if x == 3: print ("================ Hola") if x == 4: print ("================ Ciao") hello_world() for i in range(1,7): print ("Greeting ",i," is: ") random_greeting() """ Tasks: 1) Try the program as it is 2) Change the way randint is used so it gives you a random number between 1 and 5. 3) Add another if statement block to give a fifth random number option TEST THESE CHANGES 4) Change the way the for loop works so it loops around 20 times. 5) Change the way the for loop works so it only does even numbers. for a reminder of the parameters range takes delete the (1,5) and type the first ( TEST IT AGAIN """